package com.trainoo.novel.exception;

public class NovelException extends RuntimeException {

    private String type;

    public NovelException() {
        super();
    }

    public NovelException(String type, String message) {
        super(message);
        this.type = type;
    }

    public NovelException(String type, String message, Throwable cause) {
        super(message, cause);
        this.type = type;
    }

    public NovelException(String type, Throwable cause) {
        super(cause);
        this.type = type;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

}
